package com.alu4r.atcrowdfunding.manager.service.impl;

import com.alu4r.atcrowdfunding.bean.Advertisement;
import com.alu4r.atcrowdfunding.manager.dao.AdvertisementMapper;
import com.alu4r.atcrowdfunding.manager.service.AdvertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdvertServiceImpl implements AdvertService {
    @Autowired
    private AdvertisementMapper advertisementMapper;

    @Override
    public int insertAdvert(Advertisement advertisement) {
        return advertisementMapper.insert(advertisement);
    }
}
